package xiao.trip.dao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import xiao.trip.Do.loseDO;

import java.util.List;

@Mapper
@Service
public interface loseDAO {
    @Select("select * from lose")
    public List<loseDO> select_all();
    @Select("select * from lose where loseId=#{loseId}")
    public List<loseDO> select_Id(String loseId);
    @Insert("insert into lose value (#{loseTitle},#{loseTime},#{characteristic},#{username},#{loseId},#{userphone},#{hp})")
    public int insert(String loseTitle, String loseTime,String characteristic,String username,String loseId,String userphone,String hp);
}
